<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:70:"D:\adobe\wamp\www\tp6\public/../application/admin\view\admin\info.html";i:1557361687;s:62:"D:\adobe\wamp\www\tp6\application\admin\view\admin\header.html";i:1557361897;}*/ ?>
<!DOCTYPE html>
<html>
	<head>
		<link rel="stylesheet" type="text/css" href="/tp6/public/static/bootstrap-3.3.7/css/bootstrap.min.css" />
	    <script type="text/javascript" src="/tp6/public/static/js/jquery-3.3.1.min.js"></script>
	    <script type="text/javascript" src="/tp6/public/static/bootstrap-3.3.7/js/bootstrap.min.js"></script>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			$(function(){
				$(".truename").click(function(){
					var id=$(this).attr("data-id");
					
					$.post("<?php echo url('ajaxGetInfo'); ?>",{id:id},function(data){
						$("#modal-truename").text(data.truename);
						$("#modal-stuno").text(data.stuno);
						$("#modal-college").text(data.college);
						$("#modal-idnum").text(data.idnum);
						$("#myModal").modal('show');
					});
					
				});
			});
		</script>
	</head>
	<body>
		<center><h2>欢迎进入后台管理页面</h2></center>
		<br>
<ul class="breadcrumb">
<li> <a href="<?php echo url('index'); ?>">首页</a></li>
<li><a href="<?php echo url('impo'); ?>">批量导入数据</a></li>
<li><a href="<?php echo url('count'); ?>">统计数据</a></li>
<li><a href="<?php echo url('info'); ?>">详情数据</a></li>
<li><a href="<?php echo url('down'); ?>">导出数据</a></li>
</ul>
		<table class="table table-striped">
		  <caption>详细数据:</caption>
		  <thead>
		    <tr>
		      <th>序号</th>
		      <th>姓名</th>
		      <th>身份证号</th>
		      <th>学号</th>
		    </tr>
		  </thead>
		  <tbody>
		  	<?php if(is_array($info) || $info instanceof \think\Collection || $info instanceof \think\Paginator): $i = 0; $__LIST__ = $info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
		    <tr>
		      <td><?php echo $i+($nowpage-1)*10; ?></td>
		      <td class="truename" data-id="<?php echo $vo['id']; ?>"><?php echo $vo['truename']; ?></td>
		      <td><?php echo $vo['idnum']; ?></td>
		      <td><?php echo $vo['stuno']; ?></td>
		    </tr>
		    <?php endforeach; endif; else: echo "" ;endif; ?>
		  </tbody>
		  
		</table>
		<div class="text-center">
			<?php echo $info->render(); ?>
		</div>
		
<!-- 模态框（Modal） -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="myModalLabel"><span id="modal-truename"></span>的详细信息如下：</h4>
            </div>
            <div class="modal-body">
            	<p>学号:<span id="modal-stuno"></span></p>
            	<p>所在学院:<span id="modal-college"></span></p>
            	<p>身份证号:<span id="modal-idnum"></span></p>	
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
	</body>
</html>
